package deanandjames.statistics;

import deanandjames.configuration.Configuration;

import java.awt.*;

public class Score {
	private int value = 0;

	public void draw(Graphics2D graphics, int x, int y) {
		if (Configuration.getInstance().isDebugEnabled()) {
			graphics.setColor(Color.red);
			graphics.drawString("Score: " + value, x, y);
		}
	}

	public int getValue() {
		return value;
	}

	public void increment() {
		value++;
	}

	@Override
	public String toString() {
		return String.valueOf(value);
	}
}
